package com.ycsj.goldmedalnewconcept.student.activity;

import android.view.View;
import android.widget.ImageView;

import com.ycsj.common.base.BaseActivity;
import com.ycsj.common.base.BusInfo;
import com.ycsj.common.utils.UiUtils;
import com.ycsj.goldmedalnewconcept.R;
import com.ycsj.goldmedalnewconcept.common.Constants;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * 学生端--宠物领取第一页
 * Created by Kevin on 2019/2/27
 */

public class StudentGetpetOneActivity extends BaseActivity {

    @BindView(R.id.iv_btn)
    ImageView iv_btn;
    @Override
    protected int getContentLayout() {
        return R.layout.activity_student_getpet_one;
    }

    @Override
    protected void init() {
        initStateBar();
    }

    /**
     * 页面控件的点击事件
     *
     * @param v
     */
    @OnClick({R.id.iv_btn})
    public void onViewClick(View v) {
        switch (v.getId()) {
            case R.id.iv_btn:
                //确定按钮
                UiUtils.startActivity(this,StudentChoosePetActivity.class);
                break;
        }
    }

    /**
     * 事件处理
     *
     * @param busInfo
     */
    @Override
    public void busEvent(BusInfo busInfo) {
        super.busEvent(busInfo);
        if (busInfo != null && Constants.CLOSEPETPAGE == busInfo.type) {
            finish();
        }
    }
}
